<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script src="${RESOURCE}/eng/include/calendarDateInput.js" type="text/javascript"></script>
<script src="${RESOURCE}/scripts/security.js" type="text/javascript"></script>
<script language=JavaScript>
var allow_key_Pattern = /[\^\{\}\€\~\]\[\|\\]/i;
var browerName = navigator.appName;
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function checkPhoneNumber(){
	if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function printWindow(){
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}

function include(xUrl,xId) {
  var xmlhttp = false;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)

  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }

  /*@end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("GET", xUrl,true);
  xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
                document.getElementById(xId).innerHTML = xmlhttp.responseText;
          }
  }
  xmlhttp.send(null)
}

	function gotoWelcome(){
		window.location = "/bp3/bin/Dspc/DpromptWelcome";
	}

	//Add 5/1/2009 Srisrithanin.T 
	function getMessageLength(mulObject){
		var count = 0;
		for(var j=0;j<mulObject.length;j++){
			count+= allow_key_Pattern.test(mulObject.charAt(j)) ? 2 :(mulObject.charCodeAt(j)==13 ? 0 : 1);
		}
		return count;
	}
	
	function getTotal(text, lenEng) {
		var maxLength = (lenEng > 160) ? 134 : 140;
		var st = text;
		//var allow_key_Pattern = /[\^\{\}\€\~\]\[\|\\]/i;
		var stpos = 0;
		var byteCount = 0;
		var messagePortionCount_index = 0;
		var messagePortionCount = new Array();
		for(var i = 0; i < st.length; i++) {
                    if((byteCount * 7.0 / 8) == maxLength) {
                        messagePortionCount[messagePortionCount_index++] = st.substring(stpos, i);
                        stpos = i;
                        byteCount = 0;
                    }
			
			byteCount += allow_key_Pattern.test(st.charAt(i)) ? 2 :(st.charCodeAt(i)==13 ? 0 : 1);
			if ((byteCount * 7.0 / 8) > maxLength) {
				messagePortionCount[messagePortionCount_index++] = st.substring(stpos, i);
				stpos = i;
				i--;
				byteCount = 0;
			}
		}
		
		if (byteCount > 0) {
			messagePortionCount[messagePortionCount_index++] = st.substring(stpos);
		}
		document.forms['form1'].elements['totalMsg'].value = messagePortionCount.length;
	}

	function getSubstr(len){
		var sub = len;
		sub -= ((document.forms['form1'].elements['inputMul'].value.charCodeAt(len-1)==10)&&(document.forms['form1'].elements['inputMul'].value.charCodeAt(len-2)==13)) ? 2 : 1 ;
		document.forms['form1'].elements['inputMul'].value = document.forms['form1'].elements['inputMul'].value.substring(0,sub);
	}

	
	function getSubstrTH(len){
		if(browerName == 'Microsoft Internet Explorer') {
			var sub = len;
			sub -= ((document.forms['form1'].elements['inputMul'].value.charCodeAt(len-1)==10)&&(document.forms['form1'].elements['inputMul'].value.charCodeAt(len-2)==13)) ? 2 : 1 ;
			return document.forms['form1'].elements['inputMul'].value.substring(0,sub);
		}else return document.forms['form1'].elements['inputMul'].value.substring(0,201);
	}

	function CountEnter(){
		if(browerName == 'Microsoft Internet Explorer') {
				var beginIndex = 0;
				var temp = document.forms['form1'].elements['inputMul'].value;
				var count = 0;
				while (beginIndex >= 0){
					beginIndex = temp.indexOf(String.fromCharCode(13), beginIndex);
					if (beginIndex >= 0){
						++count;
						++beginIndex;
					}
				}
				var count1 = temp.length;
				var count3 = parseInt(count1) - count;
				return count3;
		}else return document.forms['form1'].elements['inputMul'].value.length;
	}

	function messageHandler(){	
		if (haveThai(document.forms['form1'].elements['inputMul'])){
			var len = CountEnter();
			if(len == 0){
				document.forms['form1'].elements['totalMsg'].value = 0;
			}
			else if (len <= 70){
				document.forms['form1'].elements['totalMsg'].value = 1;
			}
			else if(len <= 134){
				document.forms['form1'].elements['totalMsg'].value = 2;
			}
			else if(len <= 201){
				document.forms['form1'].elements['totalMsg'].value = 3;
			}
			else{
					while (len > 201) {
					document.forms['form1'].elements['inputMul'].value = getSubstrTH(document.forms['form1'].elements['inputMul'].value.length);
					len = CountEnter();
					}
				document.forms['form1'].elements['totalMsg'].value = 3;
			}
			document.forms['form1'].elements['count'].value = CountEnter();
		}else{
			var lenEng = getMessageLength(document.forms['form1'].elements['inputMul'].value);
			
			if(lenEng == 0){
				document.forms['form1'].elements['totalMsg'].value = 0;
			}
			else { 
				getTotal(document.forms['form1'].elements['inputMul'].value, lenEng);
				while (document.forms['form1'].elements['totalMsg'].value > 3)
				{	if(browerName == 'Microsoft Internet Explorer') {
						getSubstr(document.forms['form1'].elements['inputMul'].value.length);
					}else{
						document.forms['form1'].elements['inputMul'].value = document.forms['form1'].elements['inputMul'].value.substring(0,(document.forms['form1'].elements['inputMul'].value.length-1));
					}
				
				getTotal(document.forms['form1'].elements['inputMul'].value, getMessageLength(document.forms['form1'].elements['inputMul'].value));
				}
			}
			document.forms['form1'].elements['count'].value = getMessageLength(document.forms['form1'].elements['inputMul'].value);
		}		
	}

	function convertTo9digits(digits7Object,digits9Object){
		if(checkInput(digits7Object)){
			digits9Object.value = "";

			if(digits7Object.value != ""){
				digits9Object.value = digits7Object.value;
			}
		}else{
			return false;
		}

		return true;
	}

	function isInt(textObj){
		var newValue = textObj.value;
		var newLength = newValue.length;

		for(var i = 0;i != newLength; i++){
			aChar = newValue.substring(i,i+1);

			if(aChar < "0" || aChar > "9") {return false;}
		}

		return true;     
	}
	
	function isIntDigit(textObj){
		var newValue = textObj.value;

		var newLength = newValue.length;

		for(var i = 0;i != newLength; i++){

			aChar = newValue.substring(i,i+1);

			if(aChar < "0" || aChar > "9") {
				alert("Please enter number only e.g. 1234567890.");
				
				textObj.value = '';
				
				return false;
			}
		}
	}

    function chkFormatMobileNumber(obj)
    {
		var newValue = obj.value;
        aChar = newValue.substring(0,1);
        if (0 < newValue.length && aChar != "0")
        {
            alert("Please enter the 10 digits phone number with prefix number 08 e.g. 0812345678.");
		obj.focus();            
		//textObj.value = '';
            return false;

            aChar = newValue.substring(0,2);
            if (1 < newValue.length && (aChar == "02" || aChar == "09"))
            {
                alert("Please enter the 10 digits phone number with prefix number 08 e.g. 0812345678.");
		obj.focus(); 
                //textObj.value = '';
                return false;
            }
        }
    }

	function checkInput(digits7Object){
		if ( ! isInt(digits7Object)){
			alert("Please enter the 10 digits phone number e.g. 0812345678.");
			digits7Object.focus();

		}else if ((digits7Object.value.length > 0)&&(digits7Object.value.length < 10)){
			alert("Please enter the 10 digits phone number e.g. 0812345678.");
			digits7Object.focus();

		}else{
			return true;
		}
		
		return false;
	}

	function haveThai(obj){
		replaceAllCharByASCii(obj);
		for(var i=0;i<obj.value.length;i++){
			if (isThaiMessage(obj.value.charCodeAt(i)))
			return true;
		}
		return false;
	}

	function replaceAllCharByASCii( obj ){
		var status = false;
		var str = obj.value;
		var res = '';
		
		for(i=0 ; i<str.length; i++){
			if( str.charCodeAt(i) == 8220 || str.charCodeAt(i) == 8221 ){
				res += '"';
				status = true;
			}else{
				res += str.charAt(i);
			}
		}
		if( status )obj.value = res;
	}

	function isThaiMessage(charCode){
		if (charCode != 10 && charCode != 13 && charCode != 27 && !(charCode >= 32 && charCode <= 95)
				&& !(charCode >= 97 && charCode <= 126) && charCode != 161 && charCode != 163 && charCode != 164
				&& charCode != 165 && charCode != 167 && charCode != 191 && charCode != 196 && charCode != 197 && charCode != 198
				&& charCode != 199 && charCode != 201 && charCode != 209 && charCode != 214 && charCode != 216 && charCode != 223
				&& charCode != 224 && charCode != 228 && charCode != 229 && charCode != 230 && charCode != 231 && charCode != 232
				&& charCode != 233 && charCode != 236 && charCode != 241 && charCode != 242 && charCode != 246 && charCode != 248
				&& charCode != 249 && charCode != 252 && charCode != 915 && charCode != 916 && charCode != 920 && charCode != 923
				&& charCode != 926 && charCode != 928 && charCode != 931 && charCode != 934 && charCode != 936 && charCode != 937
				&& charCode != 8364 )
			return true;
		return false;
	}
 
	function doLoad(){
		MM_preloadImages('${RESOURCE}/eng/images/14_webservice_msgtab01_i.gif','${RESOURCE}/eng/images/14_webservice_msgtab02_i.gif','${RESOURCE}/eng/images/14_webservice_msgtab03_i.gif','${RESOURCE}/eng/images/14_webservice_msgtab04_i.gif')


		IntervalId = setTimeout("local_date('<!--SVLT.VAR:YYMMDDHHMMSS-->')",1000);

		if ('<!--SVLT.VAR:HH_CURRENT-->') {
			document.getElementById("h<!--SVLT.VAR:HH_CURRENT-->").defaultSelected = true;
			document.getElementById("m<!--SVLT.VAR:MM_CURRENT-->").defaultSelected = true;
			document.form1.reset(); 
		}

		<!--SVLT.VAR:objectFocus-->
	}

	function doSubmit(){
        if (document.form1.schedule[1].checked)
        {
            if (!chkAfterNow())
            {
                return;
            }

            if (!chkBeforeEndDateOfNextMonth())
            {
                return;
            }
        }

        var sevenDigit = new Array();

		sevenDigit[0] = document.form1.phoneNo71;
		sevenDigit[1] = document.form1.phoneNo72;
		sevenDigit[2] = document.form1.phoneNo73;
		sevenDigit[3] = document.form1.phoneNo74;
		sevenDigit[4] = document.form1.phoneNo75;
/* Edited by Trithep on 2009-08-20 for Risk Mitigation */
        //chkFormatMobileNumber(document.form1.phoneNo71);
        //chkFormatMobileNumber(document.form1.phoneNo72);
        //chkFormatMobileNumber(document.form1.phoneNo73);
        //chkFormatMobileNumber(document.form1.phoneNo74);
        //chkFormatMobileNumber(document.form1.phoneNo75);
/* End edited by Trithep on 2009-08-20 for Risk Mitigation */
		var nineDigit = new Array();

		nineDigit[0] = document.form1.inputSubrNumb1;
		nineDigit[1] = document.form1.inputSubrNumb2;
		nineDigit[2] = document.form1.inputSubrNumb3;
		nineDigit[3] = document.form1.inputSubrNumb4;
		nineDigit[4] = document.form1.inputSubrNumb5;

		document.form1.inputSubrNumb1.value = document.form1.phoneNo71.value;
		document.form1.inputSubrNumb2.value = document.form1.phoneNo72.value;
		document.form1.inputSubrNumb3.value = document.form1.phoneNo73.value;
		document.form1.inputSubrNumb4.value = document.form1.phoneNo74.value;
		document.form1.inputSubrNumb5.value = document.form1.phoneNo75.value;

		if (document.form1.inputMul.value == ""){
			alert("Please enter your message.");
			document.form1.inputMul.focus();

			return;
		}

		if (haveThai(document.form1.inputMul)){
			document.form1.haveThai.value = "Y";
		}else{
			document.form1.haveThai.value = "N";
		}

		if (document.form1.AuthorCode.value.length == 0){
			alert("Please enter the verification code.");
			document.form1.AuthorCode.focus();

			return;
		}



		if ( (document.form1.AuthorCode.value.length < 5) || !isInt(document.form1.AuthorCode) ){
			alert ("The verification must be 5 digits.")
			document.form1.AuthorCode.focus();

			return;
		}

		var isMobile = false;

		for (var i = 0;i < 5;i++){
			if (sevenDigit[i].value != "") 
				isMobile = true;
			if(sevenDigit[i].value.length > 0){
				if(sevenDigit[i].value.substring(0,2) != "08"){
					alert("Please enter the 10 digits phone number with prefix number 08 e.g. 0812345678.");
					sevenDigit[i].focus();
					return;
				}
			}
		}

		if (! isMobile){
			alert ("Please enter the phone number of the person you want to send to.");
			document.form1.phoneNo71.focus();

			return;
		}

		var numbers = new Array();   /////////////lit check numphone same
		numbers[0]=document.form1.phoneNo71;
		numbers[1]=document.form1.phoneNo72;
		numbers[2]=document.form1.phoneNo73;
		numbers[3]=document.form1.phoneNo74;
		numbers[4]=document.form1.phoneNo75;
		var checkis;


		for(var i=0;i<5;i++)
		{
			for(var j=i+1;j<5;j++)
			{
				if(numbers[i].value != "" || numbers[j].value != "")
				{
					if(numbers[i].value == numbers[j].value)
					{
					alert("phone number of the person you want to send con't repeated");
					numbers[j].focus();
					return;
					}
				}

			}
		
		} // lit

/* Added by Srisrithanin on 2009-11-20 for Risk Mitigation */
		var addManualList = document.form1.addmanual;
		var names = new Array();
		names[0]=document.form1.phoneName1;
		names[1]=document.form1.phoneName2;
		names[2]=document.form1.phoneName3;
		names[3]=document.form1.phoneName4;
		names[4]=document.form1.phoneName5;

		for(var i=0; i<5; i++)
		{
			if(addManualList[i].value != "0" && names[i].value != "")
			{
				if (!checkTextNoScript(names[i].value))
				{
					alert("The field(s) for this contact cannot contain any special charectors in nickname.") ;
					names[i].focus();
					return;
				}
			}
		}
/* End added by Srisrithanin on 2009-11-20 for Risk Mitigation */

	var MonthName=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	
	//var month = parseInt(document.form1.ScheduleDate_Month.value) + 1;
		//document.form1.ScheduleDate_Month.value = month;
	
		if(sevenDigit[0]!=""){
			if((convertTo9digits(sevenDigit[0],nineDigit[0]))&&
			(convertTo9digits(sevenDigit[1],nineDigit[1]))&&
			(convertTo9digits(sevenDigit[2],nineDigit[2]))&&
			(convertTo9digits(sevenDigit[3],nineDigit[3]))&&
			(convertTo9digits(sevenDigit[4],nineDigit[4]))){
				//return true;
				document.form1.long_month.value = MonthName[document.form1.ScheduleDate_Month.value]
				document.form1.submit();
			}
			return;
		}

		//return true;
		document.form1.long_month.value = MonthName[document.form1.ScheduleDate_Month.value]
		document.form1.submit();
	}	

	function selectyear(year)
	{
		if(myyear.value % 4 == 0)
		{
			var MonthDays = new Array(00,31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
		}
		else if(myyear.value % 4 != 0)
		{
			var MonthDays = new Array(00,31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
		}
	}

	function clearr(PathListDay)
	{
		for(var i=PathListDay.options.length;i>=0;i--)
			PathListDay.options[i]=null;
		PathListDay.selectedIndex = -1;
	}

	function ChangeDay(ThisMonth,SelectMonth,myyear)
	{
		clearr(document.form1.ScheduleDate_DateInput);
		var count=0;
		if(ThisMonth != SelectMonth.value)
		{
			for(ReDay=0;ReDay<MonthDays[SelectMonth.value];ReDay++)
			{ 
				count++;
				document.form1.ScheduleDate_DateInput.options[ReDay]=new Option(count,count,true); 
			}
			//Set Year
			if ( (SelectMonth.value == "1") && (document.form1.ScheduleDate_YearInput.value == myyear) )
			{
			var year = myyear + 1;
			document.form1.ScheduleDate_YearInput.options[0] = new Option(year,year,true);
			}
		}
		else if(ThisMonth = SelectMonth.value)
		{
			var x=0;
			for(d=mydate;d<=MonthDays[mymonth];d++)
			{
				document.form1.ScheduleDate_DateInput.options[x]=new Option(d,d,true);
				x++;
			}
			if ( (SelectMonth.value == "12") && (document.form1.ScheduleDate_YearInput.value != myyear) )
			{
			var year = myyear;
			document.form1.ScheduleDate_YearInput.options[0] = new Option(year,year,true);
			}
		}
		
	}

	function reset(){
	document.form1.inputMul.value = "";
	document.form1.AuthorCode.value = "";
	document.form1.phoneName1.value = "";
	document.form1.phoneName2.value = "";
	document.form1.phoneName3.value = "";
	document.form1.phoneName4.value = "";
	document.form1.phoneName5.value = "";
	document.form1.phoneNo71.value = "";
	document.form1.phoneNo72.value = "";
	document.form1.phoneNo73.value = "";
	document.form1.phoneNo74.value = "";
	document.form1.phoneNo75.value = "";
	document.form1.schedule[0].checked = true;
	document.form1.resultSms.checked = false;
	}

// NOM =======================
var currentTimeFromServer = "";
//setTimeout("local_date2('<!--SVLT.VAR:YYMMDDHHMMSS-->')", 1000);
//alert(currentTimeFromServer);
//function local_date2(now_time)
//{
//    current_time1 = new Date(now_time);
//    current_time2 = current_time1.getTime() + 1000;
//    current_local_time = new Date(current_time2);
//    setTimeout("local_date2(current_local_time.getTime())",1000);
//    currentTimeFromServer = current_local_time.getTime();
//}

function formatDate(date) {
	return date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
}

function chkAfterNow()
{

    var form = document.forms[0];
    var setTime = new Date();
	var date = form.ScheduleDate.value.split("/")[0];
    var month = parseInt(form.ScheduleDate_Month.value);
	var year = form.ScheduleDate_YearInput.value;
    setTime.setFullYear(year,month,date);
//    setTime.setMonth(month);    
//    setTime.setDate(date);
    setTime.setHours(form.hh_ScheduleDate.value);
    setTime.setMinutes(form.mm_ScheduleDate.value);
    setTime.setSeconds(0);

    if (setTime.getTime() < currentTimeFromServer)
    {
        alert("Sorry ! you can not schedule your SMS to be delivered before the current time.");
        return false;
    }

    var hour = 60*60*1000;

    if ((setTime.getTime()-currentTimeFromServer) < hour)
    {
        alert("Sorry, you can only schedule future delivery of your SMS from 1 hour and up to the end of next month in advance.");
        return;
    }
    
    return true;
}

function chkBeforeEndDateOfNextMonth()
{
    var form = document.forms[0];
    var setTime = new Date();
    var date = form.ScheduleDate.value.split("/")[0];
    var month = parseInt(form.ScheduleDate_Month.value);
    var year = form.ScheduleDate_YearInput.value;
    setTime.setFullYear(year,month,date);
//    setTime.setMonth(month);
//    setTime.setDate(date);
    setTime.setHours(form.hh_ScheduleDate.value);
    setTime.setMinutes(form.mm_ScheduleDate.value);
    setTime.setSeconds(0);

    var BeforeEndDateOfNextMonth = new Date(currentTimeFromServer);
    BeforeEndDateOfNextMonth.setDate(1);
    BeforeEndDateOfNextMonth.setHours(0);
    BeforeEndDateOfNextMonth.setMinutes(0);
    BeforeEndDateOfNextMonth.setSeconds(0);
    BeforeEndDateOfNextMonth.setMonth(BeforeEndDateOfNextMonth.getMonth() + 2);
    BeforeEndDateOfNextMonth.setSeconds(-1);
    if (setTime.getTime() > BeforeEndDateOfNextMonth.getTime())
    {
        alert("Sorry, you can only schedule future delivery of your SMS from 1 hour and up to the end of next month in advance.");
        return false;
    }
    return true;
}


</script> 
</head>
<body>
<div id="header">
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway">
	<A href="/bp3/bin/DpromptIndex" class="link2">Web Service</A> &gt; 
	<a href="/bp3/bin/Dspc/DpromptWelcome"  class="link2">Profile and Service</a> &gt;  
	Send 50 online SMS for FREE
	</div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->
                <h3><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></h3>
               	<table width="100%" cellpadding="2" cellspacing="2" height="500">
                  	<tr>
                    	<td valign="top">
						
						
						
						<div align="center">
						
						
						
						
													<form name="form1" action="/bp3/bin/Dspc/SMSConfirm" method="post" onSubmit="return doSubmit()">
													<input type="hidden" name="haveThai" value="">
													<input type="hidden" name="long_month" value="">
													<input type="hidden" name="OccasionId">
                                                                				<input type="hidden" name="OccasionMssgId">
													<table width="650" border="0" cellspacing="0" cellpadding="0">
														<!--SVLT.VAR:CONF_TOP-->
													  
													  <tr> 
													    <td> 
													    
													      <!--SVLT.LOOP:ERROR_BOX-->
															  <table  border="0" cellspacing="0" cellpadding="2" width="100%">
																	<tr> 
																		<td align="center" class="textnormal_bold">The system cannot complete your transaction because</td>
																	</tr>
																	<tr> 
																	  <td align="center"  class="textnormal"><!--SVLT.VAR:ERROR_MSG--></td>
																	</tr>
														  	</table>
														  	<!--SVLT.END:ERROR_BOX-->
														  	<table width="100%" border="0" cellspacing="3" cellpadding="0">
                                                              <tr>
                                                                <td width="2%"><img src="${RESOURCE}/eng/images/14_webservice_bullet01.gif" width="9" height="9"></td>
                                                                <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/eng/images/14_webservice_subtitle17n.gif" width="350" height="22"></td>
                                                              </tr>
                                                              <tr>
                                                                <td>&nbsp;</td>
                                                                <td height="40" valign="bottom" class="textnormal"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                                                                    <tr>
                                                                      <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                                                      
                                                <td width="98%"  class="textnormal"><span class="textnormal">Send 
                                                  </span><span class="textnormalred_bold">50</span><span class="textnormal"> 
                                                  SMS for free to dtac numbers. 
                                                  Messages sent over this monthly 
                                                  quota will be charged </span><span class="textnormalred_bold">2</span><span class="textnormal"> 
                                                  baht per message.</span></td>
                                                                    </tr>
                                                                    <tr>
                                                                      <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                                                      
                                                <td class="textnormal">Messages 
                                                  sent non-dtac numbers will be 
                                                  charged 2 baht per message.</td>
                                                                    </tr>
                                                                </table></td>
                                                              </tr>
                                                              <tr>
                                                                <td>&nbsp;</td>
                                                                <td height="50" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                      
                                                <td width="20%"><span class="textnormal_bold">For 
                                                  this month:</span></td>
                                                                      
                                                <td width="" class="textnormal">You 
                                                  have already sent free <span class="textnormalred_bold">
                                                                        <!--SVLT.VAR:WB_USER__SEND_MSSG-->
                                                                      </span> 
                                                  message(s)</td>
                                                                    </tr>
                                                                    <tr>
                                                                      <td>&nbsp;</td>
                                                                      
                                                <td class="textnormal">You can 
                                                  send <span class="textnormalred_bold">
                                                                        <!--SVLT.VAR:REMN_MSSG-->
                                                                      </span> 
                                                  more message(s)</td>
                                                                    </tr>
                                                                </table></td>
                                                              </tr>
                                                            </table></td>
													  </tr>
													  <tr>
    													<td height="15" align="center"><br>
      														<table width="100%" border="0" cellspacing="0" cellpadding="0">
        														<tr>
          															<td background="${RESOURCE}/eng/images/14_webservice_tabline.gif">&nbsp;</td>
          															<td width="1"><a href="/bp3/bin/Dspc/DpromptSMSForm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg01','','${RESOURCE}/eng/images/14_webservice_msgtab01_i.gif',1)"><img src="${RESOURCE}/eng/images/14_webservice_msgtab01_i.gif" name="msg01" width="140" height="43" border="0"></a></td>
          															<td width="1"><a href="/bp3/bin/Dspc/SMSPhoneBookList" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg02','','${RESOURCE}/eng/images/14_webservice_msgtab02_i.gif',1)"><img src="${RESOURCE}/eng/images/14_webservice_msgtab02.gif" name="msg02" width="140" height="43" border="0"></a></td>
          															<td width="1"><a href="/bp3/bin/Dspc/SMSSchedule" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg03','','${RESOURCE}/eng/images/14_webservice_msgtab03_i.gif',1)"><img src="${RESOURCE}/eng/images/14_webservice_msgtab03.gif" name="msg03" width="140" height="43" border="0"></a></td>
          															<td width="1"><a href="/bp3/bin/Dspc/SMSDrReport" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg04','','${RESOURCE}/eng/images/14_webservice_msgtab04_i.gif',1)"><img src="${RESOURCE}/eng/images/14_webservice_msgtab04.gif" name="msg04" width="140" height="43" border="0"></a></td>
          															<td background="${RESOURCE}/eng/images/14_webservice_tabline.gif">&nbsp;</td>
        														</tr>
      														</table>
														</td>
	  												  </tr>
													  <tr> 
													    <td height="15" align="center"><br>
													    <br></td>
													  </tr>
													  <tr> 
													    <td height="15" align="left"><table width="80%" border="0" align="center" cellpadding="2" cellspacing="2">
													        <tr>
          														
                                          <td height="30" align="center" bgcolor="#0ABBE0"><span class="textnormalwhite_bold">Enter 
                                            your message here </span></td>
        													</tr>
        													<tr>
          														
                                          <td width="45%" align="left" class="textnormal">For 
                                            default messages on special occasions, <a href="#" class="textnormalpink_bold" onClick="MM_openBrWindow('/bp3/bin/SMSOccasion','occasion','width=520,height=550')">click here
                                            </a> </td>
        													</tr>
													        <tr> 
													          <td align="left"><span class="head">
													            <textarea name="inputMul" rows="5" wrap="virtual" class="txt_search_c04" cols="50" onMouseOut="messageHandler()" onMouseOver="messageHandler()" onChange="messageHandler()" onKeyDown="messageHandler()" onKeyUp="messageHandler()" onBlur="messageHandler()" onFocus="messageHandler()" ><!--SVLT.VAR:inputMul--></textarea>
													          </span></td>
													        </tr>
													        <tr>
                                                              
                                          <td align="left"><span class="textnormal">You 
                                            have entered
                                            <input type="text" name="count" size="2" readonly maxlength="3" class="txt_search_c04" value=<!--SVLT.VAR:count-->>
                                            characters The message will be sent in 
                                            <input type="text" name="totalMsg" size="2" readonly maxlength="3" class="txt_search_c04" value=<!--SVLT.VAR:totalMsg-->>
                                            SMS message(s) <br>
											</span>
                                            </td>
												          </tr>
														  <tr>
														  	<td>
																<table width="100%" border="0" cellspacing="3" cellpadding="0">
																	<tr>
																		<td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
																		
                                                <td width="98%" align="left" class="textnormal">Any SMS message which is in Thai or contains both Thai and English characters altogether up to 70 characters (including vowels, spacing, and numbers) is counted as 1 message. English SMS of up to 160 characters (including spacing and numbers) is counted as 1 message. For any SMS containing more characters (including special characters and other language characters) than the specified amount in 1 message, calculation for the amount of characters per message will vary based on the system's technical rules.</td>
																	</tr>
																</table>
															</td>
															</tr>
													      </table>
													      <br>
													      <table width="80%" border="0" align="center" cellpadding="0" cellspacing="3">
													        <tr> 
													          
                                          <td height="30" align="center" bgcolor="#0ABBE0"><span class="textnormalwhite_bold">Enter 
                                            the validation code </span></td>
													        </tr>
													        <tr> 
													          
                                          <td height="24" class="textnormal"> 
                                            Please enter the code that appears 
                                            in the grey area in the box below 
                                            in order to help protect against unauthorized 
                                            messaging: </td>
													        </tr>
													        <tr> 
													          <td height="55" align="center">
															  <img src="/bp3/bin/ImageCaptchaServlet?module=sms">													          </td>
													        </tr>
													        <tr>
													          <td height="24" align="center"><input name="AuthorCode" maxlength="5" type="text" class="txt_search_c04" size="30" onKeyUp="isIntDigit(this);" onKeyDown="isIntDigit(this);" value="<!--SVLT.VAR:AuthorCode-->"></td>
													        </tr>
													      </table> 
													      <p>&nbsp;</p>
													      <table width="100%" border="0" cellspacing="0" cellpadding="0">
													        <tr>
													          <td align="center"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="3">
													            <tr>
													              <td height="55" align="center">
													                  <table width="95%" border="0" align="center" cellpadding="2" cellspacing="1">
													
													                    <tr align="center" valign="top">
													                      
                                                      <td height="30" colspan = "7" align="center" bgcolor="#0ABBE0"><span class="textnormalwhite_bold">Enter the 10 digits phone number(s) or select from your phone book  <br><a href="#" onClick="MM_openBrWindow('/bp3/bin/SMSPhoneBookPop','popup','width=700,height=570')"><img src="${RESOURCE}/eng/images/phonebook.gif" width="20" height="20" border="0"></a>  <a href="#" class="textnormalpink_bold" onClick="MM_openBrWindow('/bp3/bin/SMSPhoneBookPop','popup','width=700,height=570,status=no')">click here</a> 
                                                        </span></td>
													                    </tr>
													                    <tr align="left" valign="top">
													                      <td colspan="7"><table width="100%" border="0" cellspacing="0" cellpadding="0">
													                          <tr>
													                            <td height="1" bgcolor="#B4B4B4"></td>
													                          </tr>
													                      </table></td>
													                    </tr>
																		<tr align="center" valign="top" bgcolor="#FFFFFF">
													                      <td width="11%" class="textnormal">Name</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneName1" value="<!--SVLT.VAR:inputSubrName1-->" class="txt_search_c04" ></td>
													                      <input type="hidden" name="inputSubrName1" value="<!--SVLT.VAR:inputSubrName1-->">
													                      
													                      <td colspan="2" class="textnormal">Number</td>
													                      <td width="34%" colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneNo71" value="<!--SVLT.VAR:inputSubrNumb1-->" class="txt_search_c04" onKeyUp="isIntDigit(this);" onKeyDown="isIntDigit(this);" autocomplete="off"></td>
													                      <input type="hidden" name="inputSubrNumb1" value="<!--SVLT.VAR:inputSubrNumb1-->">
													                    </tr>
																		
																		<tr align="center" valign="top" bgcolor="#EDEDED">
													                      <td width="11%" class="textnormal">Name</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneName2" value="<!--SVLT.VAR:inputSubrName2-->" class="txt_search_c04" ></td>
													                      <input type="hidden" name="inputSubrName2" value="<!--SVLT.VAR:inputSubrName2-->">
													                      
													                      <td colspan="2" class="textnormal">Number</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneNo72" value="<!--SVLT.VAR:inputSubrNumb2-->" class="txt_search_c04" onKeyUp="isIntDigit(this);" onKeyDown="isIntDigit(this);" autocomplete="off"></td>
													                      <input type="hidden" name="inputSubrNumb2" value="<!--SVLT.VAR:inputSubrNumb2-->">
													                    </tr>
																		
																		<tr align="center" valign="top" bgcolor="#FFFFFF">
													                      <td width="11%" class="textnormal">Name</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneName3" value="<!--SVLT.VAR:inputSubrName3-->" class="txt_search_c04" ></td>
													                      <input type="hidden" name="inputSubrName3" value="<!--SVLT.VAR:inputSubrName3-->">
													                      
													                      <td colspan="2" class="textnormal">Number</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneNo73" value="<!--SVLT.VAR:inputSubrNumb3-->" class="txt_search_c04" onKeyUp="isIntDigit(this);" onKeyDown="isIntDigit(this);" autocomplete="off"></td>
													                      <input type="hidden" name="inputSubrNumb3" value="<!--SVLT.VAR:inputSubrNumb3-->">
													                    </tr>
																		
																		<tr align="center" valign="top" bgcolor="#EDEDED">
													                      <td width="11%" class="textnormal">Name</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneName4" value="<!--SVLT.VAR:inputSubrName4-->" class="txt_search_c04" ></td>
													                      <input type="hidden" name="inputSubrName4" value="<!--SVLT.VAR:inputSubrName4-->">
													                      
													                      <td colspan="2" class="textnormal">Number</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneNo74" value="<!--SVLT.VAR:inputSubrNumb4-->" class="txt_search_c04" onKeyUp="isIntDigit(this);" onKeyDown="isIntDigit(this);" autocomplete="off"></td>
													                      <input type="hidden" name="inputSubrNumb4" value="<!--SVLT.VAR:inputSubrNumb4-->">
													                    </tr>
																		
																		<tr align="center" valign="top" bgcolor="#FFFFFF">
													                      <td width="11%" class="textnormal">Name</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="20" name="phoneName5" value="<!--SVLT.VAR:inputSubrName5-->" class="txt_search_c04" ></td>
													                      <input type="hidden" name="inputSubrName5" value="<!--SVLT.VAR:inputSubrName5-->">
													                      
													                      <td colspan="2" class="textnormal">Number</td>
													                      <td colspan="2" class="textnormal"><input type="text" size="20" maxlength="10" name="phoneNo75" value="<!--SVLT.VAR:inputSubrNumb5-->" class="txt_search_c04" onKeyUp="isIntDigit(this);" onKeyDown="isIntDigit(this);" autocomplete="off"></td>
													                      <input type="hidden" name="inputSubrNumb5" value="<!--SVLT.VAR:inputSubrNumb5-->">
													                    </tr>
																	  </table>
													                  <br>
													                  <table width="100%" border="0" cellspacing="3" cellpadding="0">
													                    <tr>
													                      <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
													                      
                                                      <td width="98%" align="left" class="textnormal">You 
                                                        can send up to 5 SMS simultaneously, 
                                                        each number counts as 
                                                        a message.</td>
													                    </tr>
													                    <tr>
													                      <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
													                      
                                                      <td align="left" class="textnormal">Messages 
                                                        sent non-dtac numbers 
                                                        will be charged 2 baht 
                                                        per message.</td>
													                    </tr>
													                  </table>
																	</td>
													            </tr>
													          </table>
															  <br><br>
															  <table width="80%" border="0" align="center" cellpadding="0" cellspacing="3">
																<tr>
																  
                                                <td height="30" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold">SMS 
                                                  schedule</td>
																</tr>
																<tr>
																  <td height="55" align="center"><table width="98%" border="0" cellspacing="2" cellpadding="0">
                                                    <tr> 
                                                      <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
                                                          <tr> 
                                                            <td width="20" class="textnormal"><input name="schedule" type="radio" id="radiobutton" value="N" checked  
                                                              <!--SVLT.VAR:SEND_NOW-->
                                                              /></td>
                                                            <td class="textnormal">Send 
                                                              now</td>
                                                          </tr>
                                                        </table>
                                                        <label></label></td>
                                                      <td align="left">&nbsp;</td>
                                                    </tr>
                                                    <tr> 
                                                      <td valign="middle"><table width="100%" border="0" cellspacing="2" cellpadding="2">
                                                          <tr> 
                                                            <td valign="middle" width="20"><input name="schedule" type="radio" id="radiobutton" value="S" <!--SVLT.VAR:SEND_SCHD--> /></td>
                                                            <td valign="middle" class="textnormal">Send later</td>
                                                          </tr>
                                                        </table></td>
                                                      <td align="middle" valign="middle" class="textnormal"><label></label><script language="JavaScript">DateInput('ScheduleDate', true, 'DD/MM/YYYY','<!--SVLT.VAR:START_DATE-->')</script></td>
                                                      <script language="JavaScript">
														document.writeln("<td align=\"left\" valign=\"middle\" class=\"textnormal\" >");
														document.writeln("Time");
														document.writeln("<select name=\"hh_ScheduleDate\" id=\"hh_ScheduleDate\">");
														//document.writeln("<option value=\'"+hh_ScheduleDate+"\'>"+hh_ScheduleDate+"</option>");
														document.writeln("<option id = \"h00\" value=\"00\">00</option>");
														document.writeln("<option id = \"h01\" value=\"01\">01</option>");
														document.writeln("<option id = \"h02\" value=\"02\">02</option>");
														document.writeln("<option id = \"h03\" value=\"03\">03</option>");
														document.writeln("<option id = \"h04\" value=\"04\">04</option>");
														document.writeln("<option id = \"h05\" value=\"05\">05</option>");
														document.writeln("<option id = \"h06\" value=\"06\">06</option>");
														document.writeln("<option id = \"h07\" value=\"07\">07</option>");
														document.writeln("<option id = \"h08\" value=\"08\">08</option>");
														document.writeln("<option id = \"h09\" value=\"09\">09</option>");
														document.writeln("<option id = \"h10\" value=\"10\">10</option>");
														document.writeln("<option id = \"h11\" value=\"11\">11</option>");
														document.writeln("<option id = \"h12\" value=\"12\">12</option>");
														document.writeln("<option id = \"h13\" value=\"13\">13</option>");
														document.writeln("<option id = \"h14\" value=\"14\">14</option>");
														document.writeln("<option id = \"h15\" value=\"15\">15</option>");
														document.writeln("<option id = \"h16\" value=\"16\">16</option>");
														document.writeln("<option id = \"h17\" value=\"17\">17</option>");
														document.writeln("<option id = \"h18\" value=\"18\">18</option>");
														document.writeln("<option id = \"h19\" value=\"19\">19</option>");
														document.writeln("<option id = \"h20\" value=\"20\">20</option>");
														document.writeln("<option id = \"h21\" value=\"21\">21</option>");
														document.writeln("<option id = \"h22\" value=\"22\">22</option>");
														document.writeln("<option id = \"h23\" value=\"23\">23</option>");
														document.writeln("</select>");
														
														document.writeln("<label for=\"label3\"></label>");
														document.writeln("<select name=\"mm_ScheduleDate\" id=\"mm_ScheduleDate\">");
														//document.writeln("<option value=\'"+mm_ScheduleDate+"\'>"+mm_ScheduleDate+"</option>");
														document.writeln("<option id = \"m00\" value=\"00\">00</option>");
														document.writeln("<option id = \"m05\" value=\"05\">05</option>");
														document.writeln("<option id = \"m10\" value=\"10\">10</option>");
														document.writeln("<option id = \"m15\" value=\"15\">15</option>");
														document.writeln("<option id = \"m20\" value=\"20\">20</option>");
														document.writeln("<option id = \"m25\" value=\"25\">25</option>");
														document.writeln("<option id = \"m30\" value=\"30\">30</option>");
														document.writeln("<option id = \"m35\" value=\"35\">35</option>");
														document.writeln("<option id = \"m40\" value=\"40\">40</option>");
														document.writeln("<option id = \"m45\" value=\"45\">45</option>");
														document.writeln("<option id = \"m50\" value=\"50\">50</option>");
														document.writeln("<option id = \"m55\" value=\"55\">55</option>");
														document.writeln("</select></td>");
													  </script>
                                                    </tr>
                                                    <tr> 
                                                      <td valign="baseline">&nbsp;</td>
                                                      <td align="left" class="textnormal"><br>
													  <div id="local_time" class="textnormal_grey">&nbsp;&nbsp;&nbsp;</div>
													  <script language="JavaScript1.2">
																			<!--
																				function local_date(now_time) {
																					current_time1 = new Date(now_time);
																					current_time2 = current_time1.getTime() + 1000;
																					current_local_time = new Date(current_time2);
																					
																					switch(current_local_time.getMonth()+1)
																					{
																						case 1:month_th = "January"; break;
																						case 2:month_th = "February"; break;
																						case 3:month_th = "March"; break;
																						case 4:month_th = "April"; break;
																						case 5:month_th = "May"; break;
																						case 6:month_th = "June"; break;
																						case 7:month_th = "July"; break;
																						case 8:month_th = "August"; break;
																						case 9:month_th = "September"; break;
																						case 10:month_th = "October"; break;
																						case 11:month_th = "November"; break;
																						case 12:month_th = "December"; break;
																					}
	
																					year_th =  current_local_time.getFullYear();
																					
																					if(current_local_time.getHours() < 10)
																						hours = "0" + current_local_time.getHours();
																					else
																						hours = current_local_time.getHours();
																				
																					if(current_local_time.getMinutes() < 10)
																						minutes = "0" + current_local_time.getMinutes();
																					else
																						minutes = current_local_time.getMinutes();
																						
																					if(current_local_time.getSeconds() < 10)
																						seconds = "0" + current_local_time.getSeconds();
																					else
																						seconds = current_local_time.getSeconds();
																					
																					local_time.innerHTML = "&nbsp;&nbsp;"+"Current time"+"&nbsp;"+"-"+"&nbsp;" + current_local_time.getDate() + " " +month_th + " " + year_th + " " + hours + ":" + minutes + ":" + seconds;

currentTimeFromServer = current_local_time.getTime();
    																				setTimeout("local_date(current_local_time.getTime())",1000);
																				}

																				//-->
																			</script></td>
                                                    </tr>
                                                  </table>
																	  <br>
																	  <table width="100%" border="0" cellspacing="3" cellpadding="0">
																		<tr>
																		  <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
																		  
                                                      <td width="98%" align="left" class="textnormal">The 
                                                        system cannot guarantee 
                                                        that scheduled SMS will 
                                                        be sent on schedule.</td>
																		</tr>
																		<tr>
																		  <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
																		  
                                                      <td align="left" class="textnormal">Schedule future delivery of your SMS from 1 hour and up to the end of next month in advance. The scheduled SMS will deduct from quota of the month that the user submits the SMS. For example, if a message is entered in January and is scheduled to be sent in the month of February, the system will deduct the January SMS quota. </td>
																		</tr>
																	  </table>
																	  <br>
																	  <table width="100%" border="0" cellspacing="2" cellpadding="2">
																		<tr>
																		  <td width="5%" align="left" valign="middle"><input type="checkbox" name="resultSms" value="Y" id="checkbox" <!--SVLT.VAR:ALERT_CHECKED-->/></td>
																		  
                                                      <td width="95%" align="left" valign="middle" class="textnormal">Check 
                                                        here if you want SMS confirmation 
                                                      </td>
																		</tr>
																	  </table>
																	  <table width="100%" border="0" cellspacing="3" cellpadding="0">
																		<tr>
																		  <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
																		  
                                                      <td width="98%" align="left" class="textnormal">For 
                                                        the SMS confirmation, 
                                                        the system will send a 
                                                        confirmation SMS to your 
                                                        phone based on the number 
                                                        of users that have successfully 
                                                        received your SMS. </td>
																		</tr>
																		<tr>
																		  <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
																		  
                                                      <td align="left" class="textnormal">The 
                                                        SMS confirmation will 
                                                        be sent to you within 
                                                        3 hours when the recipient(s) 
                                                        does not receive your 
                                                        SMS due to their phone 
                                                        being switched off, due 
                                                        to their account being 
                                                        suspended or due to their 
                                                        phone being positioned 
                                                        outside of the coverage 
                                                        area. </td>
																		</tr>
																	  </table></td>
																</tr>
															  </table>
															  </td>
													        </tr>
													      </table>
													      <table width="100%" border="0" cellspacing="0" cellpadding="0">
													        <tr> 
													          <td align="center" class="head"><br>
													            <br>
													            <table width="350" border="0" align="center" cellpadding="5" cellspacing="0">
													              <tr align="center" valign="top">
													                <td><a href="javascript:doSubmit()"><img src="${RESOURCE}/eng/images/14_webservice_sms_submit.gif" border="0"></a></td>
													                <td><a href="javascript:reset()"><img src="${RESOURCE}/eng/images/14_webservice_sms_reset.gif" border="0"></a></td>
													              </tr>
													            </table>
													          <br>
													          <br></td>
													        </tr>
													      </table>
													      <span class="textnormal"><span class="head"><img src="${RESOURCE}/eng/images/14_webservice_remark.gif" width="95" height="33"></span></span>
														  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="3">
                                        <tr> 
                                          <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                          <td width="98%" align="left" class="textnormal">Message(s) 
                                            submitted from this system is considered 
                                            final and complete.</td>
                                        </tr>
                                        <tr> 
                                          <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                          <td align="left" class="textnormal">Service 
                                            fee &amp; quota details</td>
                                        </tr>
                                        <tr> 
                                          <td valign="baseline">&nbsp;</td>
                                          <td align="left" class="textnormal"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="3">
                                              <tr> 
                                                <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                                <td width="98%" align="left" class="textnormal">For 
                                                  sending to dtac number, the 
                                                  system will deduct from the 
                                                  monthly quota based on the submitted 
                                                  message. The deduction is final 
                                                  and will not be returned in 
                                                  the event that the user cancels 
                                                  the scheduled SMS message.</td>
                                              </tr>
                                              <tr> 
                                                <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                                <td align="left" class="textnormal">For 
                                                  sending to non-dtac number or 
                                                  sending messages over the quota, 
                                                  the system will charge the user’s 
                                                  account immediately upon sending.</td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                        <tr> 
                                          <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                          <td align="left" class="textnormal">The 
                                            company reserves the right not to 
                                            refund any charge and service charge 
                                            which might happen from sent to the 
                                            wrong number or number is not in service, 
                                            changes in any charges, regulations 
                                            or service applications. In addition, 
                                            the subscriber is not allowed to use 
                                            the service to seek out profit in 
                                            corruption way, illegal or company 
                                            will cancel the service as appropriate.</td>
                                        </tr>
                                        <tr> 
                                          <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                          <td align="left" class="textnormal">This 
                                            service is intended for personal use 
                                            only and may not be used for commercial 
                                            purposes. Legal action will be taken 
                                            should the company discover any individual 
                                            violating this condition.</td>
                                        </tr>
                                        <tr> 
                                          <td height="10" colspan="2" valign="baseline"><img src="${RESOURCE}/eng/imagesimages/clear.gif" width="1" height="1"></td>
                                        </tr>
                                        <tr> 
                                          <td colspan="2" valign="baseline"><a href="/bp3/bin/GuestTermOfService" class="textnormal_blue">Terms and Conditions of Happy Web Services</a><span class="textnormalred">|</span><a href="#" class="textnormalred" onClick="MM_openBrWindow('http://www.happy.co.th/eservice/sms_rules_en.php','PopUp','')">Terms of Use Web Services</a></td>
                                        </tr>
                                      </table>
														  <p>&nbsp;</p>
														  <table>
															<tr> 
                                        						<td height="15" align="left"><a href="/bp3/bin/Dspc/DpromptWelcome"><img src="${RESOURCE}/eng/images/14_webservice_main.gif" border="0"></a></td>
                                      						</tr>
															</table>
													      <p>&nbsp;</p></td>
													  </tr>
													 
													  <!--SVLT.VAR:CONF_BOTTON-->
													</table>

                                                    <!-- for check add manual -->
                                                    <input type="hidden" name="addmanual" value="<!--SVLT.VAR:addManual1-->">
                                                    <input type="hidden" name="addmanual" value="<!--SVLT.VAR:addManual2-->">
                                                    <input type="hidden" name="addmanual" value="<!--SVLT.VAR:addManual3-->">
                                                    <input type="hidden" name="addmanual" value="<!--SVLT.VAR:addManual4-->">
                                                    <input type="hidden" name="addmanual" value="<!--SVLT.VAR:addManual5-->">

                                                    </form>
						
						
						</div>
						
						
						
						</td>
                 	</tr>
              	</table>                
                <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>
